package com.blb.community_admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.community_admin.entity.ZyOwner;
import com.blb.community_admin.mapper.ZyOwnerMapper;
import com.blb.community_admin.service.IZyOwnerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ZyOwnerServiceImpl extends ServiceImpl<ZyOwnerMapper, ZyOwner> implements IZyOwnerService {
    @Resource
    private ZyOwnerMapper ownerMapper;
    @Override
    public IPage<ZyOwner> fuzzyPage(Long current, Long size, String ownerNickname, String ownerRealName, String ownerIdCard, String ownerPhoneNumber) {
        return ownerMapper.fuzzyPage(new Page<ZyOwner>(current, size), ownerNickname, ownerRealName, ownerIdCard, ownerPhoneNumber);
    }
    public void updata1(ZyOwner zyOwner){
        ownerMapper.updata1(zyOwner);

    }
}
